package com.qidian.buy.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author 戴着假发的程序员
 * @company 起点编程
 * @date 2023/9/8 10:59
 */
@TableName("buy_item_specifications")
public class ItemSpecifications {
    @TableId(value="spe_id",type = IdType.AUTO)
    private Long speId;
    private String speName;
    private String speDesc;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyTime;
    private Integer status;

    @TableField(exist = false)
    private List<ItemSpecificationsEntry> entrys;

    public List<ItemSpecificationsEntry> getEntrys() {
        return entrys;
    }

    public void setEntrys(List<ItemSpecificationsEntry> entrys) {
        this.entrys = entrys;
    }

    public Long getSpeId() {
        return speId;
    }

    public void setSpeId(Long speId) {
        this.speId = speId;
    }

    public String getSpeName() {
        return speName;
    }

    public void setSpeName(String speName) {
        this.speName = speName;
    }

    public String getSpeDesc() {
        return speDesc;
    }

    public void setSpeDesc(String speDesc) {
        this.speDesc = speDesc;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
